package com.ybkj.daijia.server.zhuanxian;

import com.ybkj.daijia.server.model.Area;
import java.io.Serializable;
import java.util.Date;

public class Line implements Serializable {

    private static final long serialVersionUID = 1L;
    private Long id;
    private Date created;
    private Date updated;
    private Long companyId;
    private String companyName;
    private Long areaId;//拼车收费Id
    private Long jihuoAreaId;//寄货收费Id
    private Long baocheAreaId;//包车收费Id
    private String name;
    private String startCity;
    private String startAddress;
    private String endCity;
    private String endAddress;
    private String appKey;
    private Area area;
    private Area jihuoArea;
    private Area baocheArea;
    private Long driverLevelId;//临时字段
    private Long driverLevelBaocheId;//临时字段
    private Long driverLevelJihuoId;//临时字段
    /**
     * 线路联系电话
     */
    private String contactNumber;

    public String getContactNumber() {
        return contactNumber;
    }

    public void setContactNumber(String contactNumber) {
        this.contactNumber = contactNumber;
    }

    public Long getDriverLevelBaocheId() {
        return driverLevelBaocheId;
    }

    public void setDriverLevelBaocheId(Long driverLevelBaocheId) {
        this.driverLevelBaocheId = driverLevelBaocheId;
    }

    public Long getDriverLevelJihuoId() {
        return driverLevelJihuoId;
    }

    public void setDriverLevelJihuoId(Long driverLevelJihuoId) {
        this.driverLevelJihuoId = driverLevelJihuoId;
    }

    public Long getDriverLevelId() {
        return driverLevelId;
    }

    public void setDriverLevelId(Long driverLevelId) {
        this.driverLevelId = driverLevelId;
    }

    public Area getJihuoArea() {
        return jihuoArea;
    }

    public void setJihuoArea(Area jihuoArea) {
        this.jihuoArea = jihuoArea;
    }

    public Area getBaocheArea() {
        return baocheArea;
    }

    public void setBaocheArea(Area baocheArea) {
        this.baocheArea = baocheArea;
    }

    public Long getJihuoAreaId() {
        return jihuoAreaId;
    }

    public void setJihuoAreaId(Long jihuoAreaId) {
        this.jihuoAreaId = jihuoAreaId;
    }

    public Long getBaocheAreaId() {
        return baocheAreaId;
    }

    public void setBaocheAreaId(Long baocheAreaId) {
        this.baocheAreaId = baocheAreaId;
    }

    public Area getArea() {
        return area;
    }

    public void setArea(Area area) {
        this.area = area;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName == null ? null : companyName.trim();
    }

    public Long getAreaId() {
        return areaId;
    }

    public void setAreaId(Long areaId) {
        this.areaId = areaId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getStartCity() {
        return startCity;
    }

    public void setStartCity(String startCity) {
        this.startCity = startCity == null ? null : startCity.trim();
    }

    public String getStartAddress() {
        return startAddress;
    }

    public void setStartAddress(String startAddress) {
        this.startAddress = startAddress == null ? null : startAddress.trim();
    }

    public String getEndCity() {
        return endCity;
    }

    public void setEndCity(String endCity) {
        this.endCity = endCity == null ? null : endCity.trim();
    }

    public String getEndAddress() {
        return endAddress;
    }

    public void setEndAddress(String endAddress) {
        this.endAddress = endAddress == null ? null : endAddress.trim();
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey == null ? null : appKey.trim();
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Line other = (Line) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCompanyId() == null ? other.getCompanyId() == null
            : this.getCompanyId().equals(other.getCompanyId()))
            && (this.getCompanyName() == null ? other.getCompanyName() == null
            : this.getCompanyName().equals(other.getCompanyName()))
            && (this.getAreaId() == null ? other.getAreaId() == null
            : this.getAreaId().equals(other.getAreaId()))
            && (this.getName() == null ? other.getName() == null
            : this.getName().equals(other.getName()))
            && (this.getStartCity() == null ? other.getStartCity() == null
            : this.getStartCity().equals(other.getStartCity()))
            && (this.getStartAddress() == null ? other.getStartAddress() == null
            : this.getStartAddress().equals(other.getStartAddress()))
            && (this.getEndCity() == null ? other.getEndCity() == null
            : this.getEndCity().equals(other.getEndCity()))
            && (this.getEndAddress() == null ? other.getEndAddress() == null
            : this.getEndAddress().equals(other.getEndAddress()))
            && (this.getAppKey() == null ? other.getAppKey() == null
            : this.getAppKey().equals(other.getAppKey()))
            && (this.getCreated() == null ? other.getCreated() == null
            : this.getCreated().equals(other.getCreated()))
            && (this.getUpdated() == null ? other.getUpdated() == null
            : this.getUpdated().equals(other.getUpdated()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
        result = prime * result + ((getCompanyName() == null) ? 0 : getCompanyName().hashCode());
        result = prime * result + ((getAreaId() == null) ? 0 : getAreaId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getStartCity() == null) ? 0 : getStartCity().hashCode());
        result = prime * result + ((getStartAddress() == null) ? 0 : getStartAddress().hashCode());
        result = prime * result + ((getEndCity() == null) ? 0 : getEndCity().hashCode());
        result = prime * result + ((getEndAddress() == null) ? 0 : getEndAddress().hashCode());
        result = prime * result + ((getAppKey() == null) ? 0 : getAppKey().hashCode());
        result = prime * result + ((getCreated() == null) ? 0 : getCreated().hashCode());
        result = prime * result + ((getUpdated() == null) ? 0 : getUpdated().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", companyId=").append(companyId);
        sb.append(", companyName=").append(companyName);
        sb.append(", areaId=").append(areaId);
        sb.append(", name=").append(name);
        sb.append(", startCity=").append(startCity);
        sb.append(", startAddress=").append(startAddress);
        sb.append(", endCity=").append(endCity);
        sb.append(", endAddress=").append(endAddress);
        sb.append(", appKey=").append(appKey);
        sb.append(", created=").append(created);
        sb.append(", updated=").append(updated);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}